<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>表单</title>
	</head>
	<body>
		<form id="form1" name="form01" action="" method="">
			
		</form>
		<form id="form2" name="form02" action="" method="">
			
		</form>
	</body>
	<script type="text/javascript">
		var form1=document.form01;
		console.log(form1);
		var form2=document.getElementById("form2");
		console.log(form2);
		
		var forms=document.forms;
		// console.log(forms);
		
		var form3=forms[0];
		console.log(form3);
		
	</script>
</html>
